public class tset {
    public static volatile int sum=1;


    public static void main(String[] args) {

        Thread dio=new Thread(new Runnable() {
            @Override

            public void run() {
                while (true){

                    new Thread();
                    System.out.println(++sum);
                }
            }
        },"t");
        dio.start();

    }
}
